package com.wzh.ojbackendserviceclient.service;

import com.wzh.ojCommon.constant.SystemNameConstant;
import com.wzh.ojModel.model.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wzh
 */
@FeignClient(name = SystemNameConstant.OJ_BACKEND_JUDGE_SERVICE,path = "/api/judge/inner")
public interface JudgeFeignClient {
    /**
     * 判题
     * @param questionSubmitId
     * @return
     */
    @PostMapping("/do")
    QuestionSubmit doJudge(@RequestParam("questionSubmitId") long questionSubmitId);

}
